<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>后台模板</title>

<script type="text/javascript" src="__PUBLIC__/js/jquery-2.1.3.min.js"></script>

<link rel="stylesheet" href="__PUBLIC__/css/add.css" type="text/css" media="screen">
<link rel="stylesheet" href="__PUBLIC__/css/bootstrap.css" type="text/css" media="screen">

</head>
<body>
<h1></h1>
<div class="div_from_aoto" style="width: 500px;">
    <form method="post" id="handleposition" action="{:U('Admin/advs/add_ad')}" enctype="multipart/form-data"><!--通用信息-->
    <div class="tab-content col-md-10">                       
    <div class="tab-pane active" id="tab_tongyong">                           
        <table class="table table-bordered">
            <tbody>
            <tr>
                <td class="col-sm-2">广告名称：</td>
                <td class="col-sm-8">
                <input type="text" class="form-control" name="advsname" placeholder="请输入广告名称">           
                </td>
            </tr>
            <tr>
                <td>广告位置：</td>
                <td>
                    <select name="address" class="input-sm">
                        <option value="0">广告</option>
                        <option value="1">广告1</option>
                        <option value="2">广告2</option>
                    </select>                                
                </td>
            </tr>
            <tr>
                <td>广告链接：</td>
                <td>
                    <input type="text" class="form-control" name="advslink" placeholder="请输入广告链接" >
                </td>
            </tr> 
            <tr>
                <td>广告图片：</td>
                <td>
                    <div class="col-sm-3">
                        <!-- <input type="text" class="form-control" style="width:350px;margin-left:-15px;" id="ad_code"> -->
                    </div>
                    <div class="col-sm-3">
                        <input type="file" class="btn btn-default" name="picname" />
                    </div>
                </td>
            </tr>
            <tr>
                <td>状态：</td>
                <td>
                    <select name="status" class="input-sm">
                         <option value="1">显示</option>                       
                         <option value="2">隐藏</option>
                    </select>                                
                </td>
            </tr>                                  
            </tbody> 
            <tfoot>
                <tr>
                <td><input class="btn btn-primary" type="submit" value="保存"></td></tr>
            </tfoot>                               
        </table>
    </div>                           
    </div>              
    </form><!--表单数据-->

</div>

</body>
    <script>
         //获取当前用户权限值
         var status = {$Think.session.admin_status};
         //判断当前用户是否为超管
         window.onload = function(){
            if(status == 1){
                $('#admin_form div div input').attr('disabled',true);
            }
         }
    </script>
</html>